package com.atguigui.gulimall.cart.service;

import com.atguigui.gulimall.cart.vo.CartItemVo;
import com.atguigui.gulimall.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {

    CartItemVo addCartItem(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartVo cart() throws ExecutionException, InterruptedException;

    CartItemVo getCartItemVoBySkuId(String skuId);

    void checkItem(String skuId, Integer checked);

    void countItem(String skuId, Integer num);

    void deleteItem(String skuId);

    List<CartItemVo> getCheckedCart();
}
